package com.view;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainMenuActivity extends Activity implements OnClickListener {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		Button takePhoto;
		Button inquiryPhoto;
		takePhoto=(Button)findViewById(R.id.main_registerphoto);
		inquiryPhoto=(Button)findViewById(R.id.main_inquiryphoto);
		takePhoto.setOnClickListener(this);
		inquiryPhoto.setOnClickListener(this);
	}
	public void onClick(View v) {
		// TODO Auto-generated method stub
		Intent intent;
		switch(v.getId()){
		case R.id.main_registerphoto : 
			intent = new Intent(MainMenuActivity.this, TakePhotoActivity.class);
			startActivity(intent);
			break;
		case R.id.main_inquiryphoto : 
			intent = new Intent(MainMenuActivity.this, InquiryPhotoMainActivity.class);
			startActivity(intent);
			break;
		}
	}
}
